﻿using System.ServiceModel;
using Resonance.TrainNode.Services;

namespace Resonance.TrainNode.WndSvcHost
{
	internal class TrainNodeWCFManager
	{
		protected ServiceHost svcHost;

		internal void StartServiceHost()
		{
			svcHost = new ServiceHost(typeof(TrainNodeService));
			svcHost.Open();
		}

		internal void StopServiceHost()
		{
			svcHost.Close();
		}
	}
}
